#ifndef _IICSOFT_H_
#define _IICSOFT_H_
#include "def.h"

	#ifndef		_IICSOFT_GLOBAL_
		#define		IICSOFT_GLOBAL		extern

	#else
		#define		IICSOFT_GLOBAL	
	#endif
	IICSOFT_GLOBAL void IIC_DeInit(void);
	IICSOFT_GLOBAL void IIC_Init(uint32 baudrate);	
	IICSOFT_GLOBAL	bool WriteI2C_NULLSubAddr(const U8 *Pdata0,u16 len,u8 ChipAddr);
	IICSOFT_GLOBAL	bool WriteI2C_SubAddrU8(const U8 *Pdata0,u16 len,u8 subAddr,u8 ChipAddr);
	IICSOFT_GLOBAL	bool WriteI2C_SubAddrU16(u8 *Pdata0,u16 len,u16 subAddr,u8 ChipAddr);
	IICSOFT_GLOBAL	bool ReadI2C_NULLSubAddr(u8 *Pdata0,u16 len,u8 ChipAddr);
	IICSOFT_GLOBAL	bool ReadI2C_SubAddrU8(u8 *Pdata0,u16 len,u8 subAddr,u8 ChipAddr);
	IICSOFT_GLOBAL	bool ReadI2C_SubAddrU16(u8 *Pdata0,u16 len,u16 subAddr,u8 ChipAddr);
#endif

/******************* (C) COPYRIGHT 20130924 JQilin*****END OF FILE****/
